<%@ Page Language="C#" MasterPageFile="~/MainMaster.master" AutoEventWireup="true"
    CodeFile="DentistGroupPractice.aspx.cs" Inherits="Dentist_DentistGroupPractice"
    Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainTable" runat="Server">

    <script>
if(Page_ClientValidate())
		{
            function CheckCardNo(e)
            {
                if(!(e.keyCode>=48 && e.keyCode<=57))
                { 
                return false;
                document.getElementById("<%=txtcardnumber.ClientID%>").focus();
                }   
            }	
           
		
		function ChkLen(sender, args)
              {
                //alert(document.getElementById("txt_profdesc"));
                if(document.getElementById("<%=txtdentistStatement.ClientID%>").value.length > 1500)
                {
                    args.IsValid = false;
                    return;
                }
                args.IsValid = true;
              }
              }
		
    </script>

    <script>
    function checkSelectedValue()
{ 
    
    if (document.getElementById("<%=ddlFeaturedDocType.ClientID%>").selectedIndex == 2 || document.getElementById("<%=ddlFeaturedDocType.ClientID%>").selectedIndex == 3)
    {
        document.getElementById("<%=ddlSubSpeciality.ClientID%>").disabled = false;
    }
    else
    {
        document.getElementById("<%=ddlSubSpeciality.ClientID%>").selectedIndex = 0;
        document.getElementById("<%=ddlSubSpeciality.ClientID%>").disabled = true;
    }
}

    function checkDocCount()
    {
        if(document.getElementById("<%=txtDentCount.ClientID%>").value == "" || document.getElementById("<%=txtDentCount.ClientID%>").value == "1")
        {
            return false;
        }
        else
        {
            if(document.getElementById("<%=ddlFeaturedDocType.ClientID%>").selectedIndex == 0)
            {
                alert("Select Subscription Level");
                return false;
            }
            return true;
        }
    }
    
    function onlyDigits(e) 
    {
        if (window.event.keyCode < 46 || window.event.keyCode > 57) 
        {
            window.event.keyCode = 0;
            return false;
        }
        return true;
    }
    
    function checkId()
    {
        if(document.getElementById("<%=txtDentEmail.ClientID%>").value == "")
        {
            alert("Enter dentist Email");
            return false;
        }
        return true;
    }
    
    function redirect()
    {
        window.location.href = "dentist/dentistGroupPractice.aspx";
        return false;
    }
    </script>
  <!---/ Left wrapper -->
    <div style="width: 94%; padding: 3%">
        <div style="background-color: #f4f4f4; width: 94%; padding: 3%">
            <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; vertical-align: top">
                <tr>
            <td >
                <asp:MultiView ID="MultiView1" runat="server">
                    <asp:View ID="viewGetTotalDocs" runat="server">
                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                            <tr>
                                <td style="height: 20px; font-size: small; font-weight: bold;" valign="top" align="left">
                                    Step 1</td>
                            </tr>
                            <tr>
                                <td style="height: 20px" colspan="4" align="center" valign="top">
                                    <asp:Label ID="lblWS1Message" ForeColor="red" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 50%" valign="middle">
                                    &nbsp;<strong >How many dentists would you like to sign up to become Featured
                                        dentists</strong>
                                </td>
                                <td colspan="2" style="width: 50%" valign="middle">
                                    <asp:TextBox runat="server" ID="txtDentCount" CssClass="inp" Width="173px" onkeypress="return onlyDigits();"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 50%" valign="middle">
                                    &nbsp;<strong >Select Speciality</strong>
                                </td>
                                <td colspan="2" style="width: 50%" valign="middle">
                                    <asp:DropDownList CssClass="mainselection"  ID="ddlSpeciality"  runat="server" Width="173px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 50%; height: 50px;" valign="middle">
                                    &nbsp;<strong>Select Featured dentist Level</strong>
                                </td>
                                <td style="width: 50%;" colspan="2" valign="middle">
                                    <asp:DropDownList CssClass="mainselection"  ID="ddlFeaturedDocType"  runat="server" Width="173px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 50%; height: 50px;" valign="middle">
                                    &nbsp;<strong >Select Sub Speciality</strong>
                                </td>
                                <td colspan="2" style="width: 50%" valign="middle">
                                    <asp:DropDownList CssClass="mainselection"  ID="ddlSubSpeciality"  runat="server" Width="173px">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 50%" valign="middle">
                                    &nbsp;<strong>Select Subscription&nbsp;</strong>
                                </td>
                                <td style="width: 50%" valign="middle" colspan="2">
                                    <asp:RadioButtonList ID="rbSubscription" runat="server" Width="166px" RepeatDirection="Horizontal">
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <%--                <tr>
                    <td style="width: 50%" valign="bottom">
                        &nbsp;<strong>If you have a coupon code, enter it here: &nbsp;</strong>
                    </td>
                    <td style="width: 50%" valign="bottom">
                        <asp:TextBox ID="txtCouponCode" runat="server" Width="74px" MaxLength="7"></asp:TextBox>
                    </td>
                    <td style="width: 14px">
                    </td>
                </tr>--%>
                            <tr>
                                <td style="height: 20px; padding-right: 125px; height: 25px;" colspan="3" align="right">
                                    <asp:LinkButton runat="server" ID="ltbnViewOne" Font-Bold="true" Text="Click here to proceed"
                                        OnClick="ltbnViewOne_Click"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View ID="viewGetPremiumDetails" runat="server">
                        <table cellpadding="0" cellspacing="0" border="0" width="100%">
                            <tr>
                                <td style="height: 20px; font-size: small; font-weight: bold;" valign="top" align="left">
                                    Step 2</td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <asp:Label ID="lblErrorMessage" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3">
                                    <b>* Helpful Hint: You may skip this step and add all of this information at a later
                                        point.</b>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="3" style="height: 20px">
                                </td>
                            </tr>
                            <tr class="normalblack_12">
                                <td style="width: 146px">
                                    <strong>Email</strong></td>
                                <td>
                                    :</td>
                                <td align="left" style="width: 355px">
                                    <asp:TextBox runat="server" ID="txtDentEmail" Width="300px" CssClass="inp"></asp:TextBox>
                                </td>
                            </tr>
                            <tr class="normalblack_12">
                                <td style="width: 146px">
                                    <strong>Photo</strong></td>
                                <td>
                                    :</td>
                                <td align="left" style="width: 355px">
                                    <asp:FileUpload ID="fupl_photo" runat="server" Width="300px" /><br />
                                    Max. file size: 500kb
                                </td>
                            </tr>
                            <tr class="normalblack_12">
                                <td style="width: 146px">
                                    <strong>Personal dentist Statement</strong></td>
                                <td>
                                    :</td>
                                <td align="left" style="width: 355px">
                                    <asp:TextBox ID="txtdentistStatement" runat="server" TextMode="MultiLine" Width="300px"
                                        CssClass="inp"></asp:TextBox><br />
                                    Max. length of text: 1500 characters<br />
                                    <asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="ChkLen"
                                        ControlToValidate="txtdentistStatement" ErrorMessage="Text cannot exceed 1500 characters."
                                        Display="Dynamic"></asp:CustomValidator><br />
                                </td>
                            </tr>
                            <tr class="normalblack_12">
                                <td style="width: 146px">
                                    <strong>Website</strong></td>
                                <td>
                                    :</td>
                                <td align="left" style="width: 355px">
                                    <asp:TextBox ID="txtWebSite" runat="server" Width="300px" CssClass="inp"></asp:TextBox>
                                    <br />
                                    <asp:RegularExpressionValidator ID="regex_web" runat="server" ControlToValidate="txtWebSite"
                                        Display="Dynamic" ErrorMessage="Enter URL in correct format (http://www.abc.com)"
                                        ValidationExpression="http(s)?://([a-zA-Z0-9]+)[.{1}]([a-zA-Z0-9]+)[.{1}]([a-zA-Z0-9]+)"></asp:RegularExpressionValidator></td>
                            </tr>
                            <tr class="normalblack_12">
                                <td style="width: 146px; height: 19px;">
                                </td>
                                <td style="height: 19px">
                                    :</td>
                                <td align="right" style="width: 355px; padding-right: 125px; height: 25px;">
                                    <asp:LinkButton runat="server" ID="lbtnDocDetails" Font-Bold="true" Text="Click next to proceed"
                                        OnClick="lbtnDocDetails_Click"></asp:LinkButton>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View runat="server" ID="viewDentDetails">
                        <table id="table3" cellspacing="0" cellpadding="0" border="0" width="100%">
                            <tr>
                                <td>
                                    <asp:Repeater ID="rptDentDetails" runat="server" OnItemCommand="rptDocDetails_ItemCommand">
                                        <HeaderTemplate>
                                            <table>
                                                <tr>
                                                    <td>
                                                        <b>Please confirm the dentist Details</b></td>
                                                </tr>
                                            </table>
                                        </HeaderTemplate>
                                        <ItemTemplate>
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color: #fff;">
                                                <tr>
                                                    <td width="7">
                                                        <img src="../images/lt.gif" alt="" width="7" height="7"></td>
                                                    <td style="border-top: 1px solid #eaeaea;">
                                                        <img src="../images/spacer.gif" alt="" width="1" height="1"></td>
                                                    <td width="7">
                                                        <img src="../images/lr.gif" alt="" width="7" height="7"></td>
                                                </tr>
                                                <tr>
                                                    <td style="border-left: 1px solid #eaeaea;">
                                                        <img src="../images/spacer.gif" alt="" width="1" height="1"></td>
                                                    <td style="text-align: left; background-color: #eeeeee;">
                                                        <table width="100%" border="0" style="padding-left: 25px;">
                                                            <tr>
                                                                <td style="width: 25%;">
                                                                    <b>Name :</b></td>
                                                                <td>
                                                                    <%# Eval("Fname") %>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 25%;">
                                                                    <b>Email :</b></td>
                                                                <td>
                                                                    <%# Eval("email") %>
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="width: 25%;">
                                                                    <b>Address :</b></td>
                                                                <td>
                                                                    <%# Eval("address1") %>
                                                                </td>
                                                            </tr>
                                                        </table>
                                                        <td style="border-right: 1px solid #eaeaea;">
                                                            <img src="../images/spacer.gif" alt="" width="1" height="1"></td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <img src="../images/lb.gif" alt="" width="7" height="7"></td>
                                                    <td style="border-bottom: 1px solid #eaeaea;">
                                                        <img src="../images/spacer.gif" alt="" width="1" height="1"></td>
                                                    <td width="7">
                                                        <img src="../images/rb.gif" alt="" width="7" height="7"></td>
                                                </tr>
                                            </table>
                                        </ItemTemplate>
                                        <FooterTemplate>
                                            <table width="100%">
                                                <tr>
                                                    <td align="left">
                                                        <strong><a href="dentistgrouppractice.aspx">Edit Details</a></strong>
                                                    </td>
                                                    <td align="right" style="padding-right: 125px; height: 25px;">
                                                        <asp:LinkButton runat="server" ID="lbtnDocDetails" Font-Bold="true" Text="Confirm Details"
                                                            OnClick="btnconfirmDetails_Click"></asp:LinkButton>
                                                    </td>
                                                </tr>
                                            </table>
                                        </FooterTemplate>
                                    </asp:Repeater>
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                    <asp:View runat="server" ID="viewPayments">
                        <table id="table1" cellspacing="0" cellpadding="0" border="0" width="100%">
                            <tr>
                                <td style="height: 20px; font-size: small; font-weight: bold;" valign="top" align="left">
                                    Step 3</td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td align="left" style="width: 20%">
                                    Card Number<font color="red">*</font>:</td>
                                <td style="width: 40%">
                                    <asp:TextBox ID="txtcardnumber" Css runat="server" MaxLength="16"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rqdvalidator2" runat="server" Display="none" ControlToValidate="txtcardnumber"
                                        ErrorMessage="Enter Card Number"></asp:RequiredFieldValidator>
                                </td>
                                <td style="width: 40%" align="left">
                                    <img id="img1" src="../Images/american-exp.gif" alt="" runat="server" />
                                    <img id="img2" src="../Images/visa.gif" runat="server" alt="" />
                                    <img id="img3" src="../Images/mastercard.gif" runat="server" alt="" />
                                </td>
                            </tr>
                            <tr>
                                <td align="left" style="width: 20%">
                                    Exp. Month<font color="red">*</font>:</td>
                                <td style="width: 40%">
                                    <asp:DropDownList CssClass="mainselection"  ID="ddlMonth" runat="server">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlMonth"
                                        ErrorMessage="Select Expiry Month" Display="None" InitialValue="Month"></asp:RequiredFieldValidator>
                                </td>
                                <td style="width: 40%">
                                </td>
                            </tr>
                            <tr>
                                <td align="left" style="width: 20%">
                                    Exp. Year<font color="red">*</font>:</td>
                                <td style="width: 20%">
                                    <asp:DropDownList CssClass="mainselection"  ID="ddlYear" runat="server">
                                    </asp:DropDownList>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="ddlYear"
                                        ErrorMessage="Select Expiry Year" Display="None" InitialValue="Year"></asp:RequiredFieldValidator>
                                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="true"
                                        ShowSummary="False" />
                                </td>
                                <td style="width: 40%">
                                </td>
                            </tr>
                            <tr>
                                <td align="left" style="width: 20%">
                                    Amount:</td>
                                <td style="width: 40%">
                                    <asp:TextBox ID="txttotal" ReadOnly="true" runat="server"></asp:TextBox></td>
                                <td style="width: 40%">
                                </td>
                            </tr>
                            <%--                <tr>
                    <td style="width: 20%" align="left">
                        Name:</td>
                    <td style="width: 40%">
                        <asp:TextBox ID="txtName" Css runat="server" ReadOnly="true"></asp:TextBox></td>
                    <td style="width: 40%">
                    </td>
                </tr>
                <tr>
                    <td align="left" style="width: 20%">
                        Address:</td>
                    <td style="width: 40%">
                        <asp:TextBox ID="txtbaddrnum" runat="server" Css ReadOnly="true"></asp:TextBox></td>
                    <td style="width: 40%">
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%" align="left">
                        City:</td>
                    <td style="width: 40%">
                        <asp:TextBox ID="txtCity" runat="server" Css ReadOnly="true"></asp:TextBox></td>
                    <td style="width: 40%">
                    </td>
                </tr>
                <tr>
                    <td align="left" style="width: 20%">
                        State:</td>
                    <td style="width: 40%">
                        <asp:TextBox ID="txtState" runat="server" Css ReadOnly="true"></asp:TextBox></td>
                    <td style="width: 40%">
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%" align="left">
                        Zip:</td>
                    <td style="width: 40%">
                        <asp:TextBox ID="txtbzip" Css runat="server" ReadOnly="true"></asp:TextBox></td>
                    <td style="width: 40%">
                    </td>
                </tr>
                <tr>
                    <td style="width: 20%" align="left">
                        Email:</td>
                    <td style="width: 40%">
                        <asp:TextBox ID="txtEmail" BackColor="Yellow" runat="server" Css ReadOnly="true"></asp:TextBox></td>
                    <td style="width: 40%">
                    </td>
                </tr>
                <tr>
                    <td colspan="3" align="left" style="width: 20%">
                        "You will receive all patient leads at this email account"</td>
                </tr>--%>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td align="left" style="width: 40%">
                                </td>
                                <td style="width: 40%">
                                </td>
                                <td style="width: 40%">
                                    <asp:TextBox ID="txtinstallments" Visible="false" Css runat="server"
                                        ReadOnly="true"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <!--Start Date:-->
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtstartdate" Visible="false" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <!--Periodicity:-->
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtperiodicity" Visible="false" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    <!--Threshold:-->
                                </td>
                                <td>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtpbthreshold" Visible="false" runat="server"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td align="center" colspan="4">
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="4">
                                    <asp:Button CssClass="buttonclass"  runat="server" Text="Complete Subscription" ID="btnSubmit" OnClick="btnSubmit_Click" />
                                </td>
                            </tr>
                        </table>
                    </asp:View>
                </asp:MultiView>
            </td>
         
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InnerRight" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="FeaturedBox" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FeatureDocBox" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="ScriptContent" runat="Server">
</asp:Content>
